<template>
    <div class='wrapper'>
        <!-- 页面头部部分 -->
        <Header  :selected="1"></Header>

        <!-- 页面内容部分 -->
        <div class='main-page'>
            <router-view></router-view>
        </div>

        <!-- 页面footer部分 -->
<!--        <Footer></Footer>-->
    </div>
</template>

<script>
import Header from './header/Header'
import Footer from './footer/Footer'
import Bus from '@/utils/bus';

export default {
    components: { Header, Footer},
    data() {
        return {

        };
    },
    computed: {

    },
    created() {


    },
    mounted() {


    },
    methods: {


        logOut() {  // 退出登录
            this.$confirm('是否确认退出登录?', '提示', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',
                confirmButtonClass: "confirmButton-reset"
            }).then(() => {
                this.$store.dispatch('removeToken');
                this.$store.dispatch('removePersonalInfoData');
                this.$router.push({
                    path: '/Login'
                });
            }).catch(() => {

            });

        },

    },
    watch:{

    }
};
</script>

<style lang='scss'>
.wrapper {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
}


</style>
